/*
 * *****************************************************************************
 *  Copyright ( c ) 2019 huibur Inc. All Rights Reserved.
 *
 *  This software is the confidential and proprietary information of Huibur Inc
 *  (*Confidential Information*). You shall not disclose such Confidential Information
 *  and shall use it only in accordance with the terms of the license agreement
 *  you entered into with Huibur or a Huibur authorized
 *  reseller (the "License Agreement*).
 *  ******************************************************************************
 */

package com.huibur.devicecheck.service;

import com.huibur.devicecheck.model.param.TypeParam;
import com.huibur.devicecheck.model.query.TypeQuery;
import com.huibur.devicecheck.model.vo.TypeVO;
import com.huibur.devicecheck.model.vo.UserVO;
import com.huibur.devicecheck.request.ObjRes;
import com.huibur.devicecheck.request.PageRes;


public interface ITypeService {

    /**
     * 新增类别
     * @param typeParam
     * @return
     */
    ObjRes<Void> insertType(TypeParam typeParam);

    /**
     * 删除类别
     * @param id
     * @return
     */
    Boolean deleteById(Long id);

    /**
     * 编辑类别
     * @param id
     * @param typeParam
     * @return
     */
    ObjRes<Void> updateType(Long id, TypeParam typeParam);

    /**
     * 类别列表(查询并分页)
     * @param typeQuery
     * @return
     */
    PageRes<TypeVO> selectListType(TypeQuery typeQuery);

    /**
     * 获取类别详情
     * @param id
     * @return
     */
    TypeVO selectTypeById(Long id);
}
